package com.fs.mapper;

import com.fs.entity.User;
import com.fs.entity.UserCondition;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {


    List<User> selectPage(@Param("userCondition") UserCondition userCondition);

    /**
     * 查询总记录数
     * @return
     */
    long count(@Param("userCondition") UserCondition userCondition);



    /**
     * 根据id查询
     * @param id
     * @return
     */
    User selectById(int id);

    /**
     * 根据id修改用户
     * @param user
     */
    void updateById(User user);
    /**
     * 根据id删除用户
     */
    void deleteById(int id);
}
